<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="tKpYushouList"  sortOrder="desc" sortName="createDate"  checkbox="true" pagination="true" fitColumns="true" title="退款管理" actionUrl="tKpYushouController.do?datagrid&ysType=退款" idField="id" fit="true" queryMode="group">
   <t:dgCol title="流水号"  field="by5" query="true"   queryMode="single"  width="90"></t:dgCol>

   <t:dgCol title="收款单号"  field="id"  hidden="true" query="true"  queryMode="single"  width="80"></t:dgCol>   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人"  field="createBy"   queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate"  formatter="yyyy-MM-dd"   queryMode="single"  width="100"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate"  formatter="yyyy-MM-dd"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属部门"  field="sysOrgCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属公司"  field="sysCompanyCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="流程状态"  field="bpmStatus"  hidden="true"  queryMode="single"  dictionary="bpm_status"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="80"></t:dgCol>

   <t:dgCol title="类型"  field="ysType"     queryMode="single"  dictionary="ys_type"  width="120"></t:dgCol>
   <t:dgCol title="收款来源"  field="ysFangshi" query="true"  queryMode="single"  dictionary="ys_fangshi"  width="120"></t:dgCol>

   <t:dgCol title="客户编码"  field="cusCode"  hidden="true"  queryMode="single"  dictionary="pop_kp_cus,cusCode,cusName,cus_code,cus_name"  popup="true"  width="120"></t:dgCol>
   <t:dgCol title="客户名称"  field="cusName"  query="true" dictionary="t_kp_cus,cus_name,cus_name"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="承建单位"  field="by2"     queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="代码"  field="by4"    queryMode="single"  width="60"></t:dgCol>

   <t:dgCol title="产品"  field="by3"     queryMode="single"  width="90"></t:dgCol>
   <t:dgCol title="金额"  field="ysJine"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备注"  field="ysRemark"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备用1"  field="by1"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <%--<t:dgCol title="备用2"  field="by2"  hidden="true"  queryMode="single"  width="120"></t:dgCol>--%>
   <%--<t:dgCol title="备用3"  field="by3"  hidden="true"  queryMode="single"  width="120"></t:dgCol>--%>
   <t:dgCol title="代码"  field="by4"    queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="备用5"  field="by5"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgConfOpt url="tKpYushouController.do?doUpdatesp&id={id}&bpmStatus=2" urlclass="ace_button"  title="审批" message="确定要审批通过" exp="bpmStatus#eq#1"/>
   <t:dgConfOpt url="tKpYushouController.do?doUpdatesp&id={id}&bpmStatus=3" urlclass="ace_button"  title="审核" message="确定要审核通过" exp="bpmStatus#eq#2"/>
   <%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
   <%--<t:dgDelOpt title="删除" url="tKpYushouController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>--%>
   <t:dgToolBar title="新增退款" icon="icon-add" url="tKpYushouController.do?goAdd&ysType=退款" funname="add" width="600" height="420"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="tKpYushouController.do?goUpdate" funname="update"></t:dgToolBar>
   <%--<t:dgToolBar title="批量删除"  icon="icon-remove" url="tKpYushouController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
   <t:dgToolBar title="查看" icon="icon-search" url="tKpYushouController.do?goUpdate" funname="detail"></t:dgToolBar>
   <%--<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/yserp/kp/tKpYushouList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'tKpYushouController.do?upload', "tKpYushouList");
}

//导出
function ExportXls() {
	JeecgExcelExport("tKpYushouController.do?exportXls","tKpYushouList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("tKpYushouController.do?exportXlsByT","tKpYushouList");
}

 </script>